<template>
  <web class="map" :src="url"></web>
</template>

<script>
import { webUrl } from '@/config'
import { getCache } from '@/util/storageUtils'
import { CTCE_USER_INFO } from '@/config/storageTypes'
import qs from 'qs'

export default {
  name: 'projectDisMap',
  data () {
    return {
      url: ''
    }
  },
  created () {
    getCache(CTCE_USER_INFO).then(res => {
      const param = qs.stringify(JSON.parse(res))
      this.url = `${webUrl}projectDisMap.html?${param}`
    })
  }
}
</script>
<style>
.map {
  flex: 1;
}
</style>

